//
//  Event.m
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/23/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import "Event.h"

@implementation Event

@synthesize eventId, eventTitle, description, placeAddress, placeName, longitude, latitude, distance, isJoining;
@synthesize eventEnd, eventPasstime, numberOfImages, numberOfLikes, numberOfMembers, isPrivate, code, creater;
@synthesize photos, users;

- (id)init {
    if (self = [super init]) {
        self.eventTitle     = @"";
        self.description    = @"";
        self.placeName      = @"";
        self.placeAddress   = @"";
        self.latitude       =  @"";
        self.longitude      = @"";
        self.code           = @"";
        self.isPrivate      = NO;
        self.eventEnd       = 24;
        self.eventPasstime  = 0;
        self.numberOfImages = 0;
        self.numberOfLikes  = 0;
        self.isJoining      = NO;
        self.numberOfMembers = 0;        
        self.photos = [NSMutableArray array];
        self.users  = [NSMutableArray array];
    }
    return self;
}

- (void)dealloc {
    self.eventTitle     = nil;
    self.description    = nil;
    self.placeName      = nil;
    self.placeAddress   = nil;
    self.longitude      = nil;
    self.latitude       = nil;
    self.code           = nil;
    self.creater        = nil;
    self.photos         = nil;
    self.users          = nil;
    [super dealloc];
}

@end
